#!bash

# simpleminded testing for nclip

source ./getexe
clip="$EXE"
$clip set "foobar"
val=$($clip get)
if [ "$val" = "foobar" ]
then
	echo "set passed"
else
	echo "set failed"
fi

if $clip any
then
	echo "any passed"
else
	echo "any failed"
fi

if $clip has text
then
	echo "has passed"
else
	echo "has failed"
fi

$clip clear
if $clip any
then
	echo "clear failed"
else
	echo "clear passed"
fi

$clip set kneel before the might of zod
if $clip find might
then
	echo "find passed"
else
	echo "find failed"
fi
if $clip find gunk
then
	echo "find failed"
else
	echo "find passed"
fi
